﻿using System;

namespace SoldiHive.Model
{
	[Serializable]
	public abstract class MarketEntity : Entity
	{
		private string name;
		public virtual string Name 
		{
			get
			{
				return this.name;
			}
			set
			{
				this.name = value;
				this.Key = this.name.ToUpper();
			}
		}

		public MarketEntity(string name)
		{
			this.Name = name;
		}

		public override string ToString()
		{
			return this.Name;
		}
	}
}
